package com.minsheng.epidemic_rep.controller;

import com.minsheng.epidemic_rep.service.IFeverClinicsService;
import com.minsheng.epidemic_rep.service.IFrmzzlcfService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.text.ParseException;

/**
 * @Classname FrmzzlcfController
 * @Description TODO
 * @Date 2020/10/1 21:36
 * @Created by You
 */
@RestController
public class FrmzzlcfController {
    @Autowired
    private IFrmzzlcfService frmzzlcfService;

    //生成CSV文件
    @RequestMapping("/zlcfcsv")
    public String craetCsc() {

        try {
            frmzzlcfService.createCsv();
        } catch (ParseException e) {
            e.printStackTrace();
        }

        return "success";

    }
}
